import Vue from 'vue'
import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
import '@/theme/element/index.css'
import './assets/style/reset.css';
import App from './App.vue'
import * as echarts from 'echarts'
import router from '@/router'
import 'echarts-wordcloud'
import 'echarts-gl'



Vue.prototype.$echarts = echarts
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.prototype.setStringLen = function (s, len) {
  if (s.length > len) {
    return s.substring(0, len) + '...';
  } else {
    return s
  }
}

Vue.prototype.getDateText = function () {
  const currentDate = new Date();
  const year = currentDate.getFullYear();
  const month = currentDate.getMonth() + 1; // 月份是从0开始计数的，所以要加1
  const day = currentDate.getDate();
  return year + "-" + month + "-" + day;
},


  new Vue({
    router,
    render: h => h(App),

  }).$mount('#app')
